//
//  AreaPickerView.h
//  picker
//
//  Created by 冷悦 on 16/4/25.
//  Copyright © 2016年 Sylar. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^SelectedArea)(NSDictionary *areaDict);

@interface AreaPickerView : UIPickerView

/**
 *  省份的名字
 */
@property (nonatomic, copy, readonly)NSString *province;

/**
 *  市的名字
 */
@property (nonatomic, copy, readonly)NSString *city;

/**
 *  区的名字
 */
@property (nonatomic, copy, readonly)NSString *district;

/**
 *  选择地区之后的闭包回调函数
 */
@property (nonatomic, copy)SelectedArea selectedAreaBlock;

/**
 *  带闭包的初始化函数
 *
 *  @param selectedAreaBlock 传入的闭包函数
 *
 *  @return 初始化好的闭包
 */
- (instancetype)initWithSelectedAreaBlock:(SelectedArea)selectedAreaBlock;

@end
